
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="mytag" uri="/mytag" %>

<%
    String arr[] = {"1", "2", "3", "4"};
    pageContext.setAttribute("arr", arr);
%>

<html>

<body>
    <mytag:forEach var="item" items="${pageScope.arr}">
        <h1>${item}</h1>
    </mytag:forEach>
</body>

</html>
